package com.dd.cloud.user.req.classroom;

import com.dd.cloud.common.annotate.FileSuffix;
import com.dd.cloud.common.annotate.validation.Desc;
import com.dd.cloud.common.annotate.validation.Name;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 媒体小节说明表
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
public class CreateMediaSectionReq implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 小节标题
     */
    @Name(begin = "小节名")
    private String name;

    /**
     * 小节分类
     */
    @NotNull(message = "分类id不能为空")
    private Integer classifyId;

    /**
     * 小节图片地址
     */
    @Length(max = 120, message = "图片地址不能超过120字符")
    @FileSuffix(head = false)
    private String img;

    /**
     * 主题
     */
    @Desc(begin = "备注", required = false)
    private String remarks;

    /**
     * 简介
     */
    private String introduct;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 视频列表
     */
    private List<CreateMediaContentReq> contentList;
}
